﻿using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Temp.Model
{
    class Player
    {

        public String boyOrGirl { get; set; }
        public int x { get; set; }
        public int y { get; set; } 

        public Texture2D[] left { get; set; }
        public Texture2D[] right { get; set; }
        public Texture2D[] walk { get; set; }
        public Texture2D[] up { get; set; }
        
        public Texture2D[] def { get; set; } 
        
        private Texture2D[] cur; 
        public Texture2D[] getCur()
        {
            return cur;
        }

        public int curDir{get; set;}
        /// <summary>
        /// 0-> back, 1-> left, 2-> down, 3-> right, 4-> stand
        /// </summary>  
        /// <param name="x"></param>
        public void setCur(int x)
        {
            if (x == 0)
                cur = up;
            if (x == 1)
                cur = left;
            if (x == 2)
                cur = walk;
            if (x == 3)
                cur = right;
            if (x == 4)
                cur = def;
            curDir = x;
        }


    }
}
